import env from 'environment';

export function addStyles(id, cssText) {
  const styleEl = $(`#${id}`).get(0)
  return styleEl || window.$(`<style id="${id}">${cssText}</style>`).appendTo($('head')).get(0)
}

export function getEnv(key) {
  return env[key]
}